// pages/member-member/member-member.js
import api from '../../utils/api.js'
var app = getApp();
import { HTTP } from '../../utils/http.js'
import { config } from '../../utils/config'
let http = new HTTP()
Page({

    /**
     * 页面的初始数据
     */
    data: {
        imgUrl: config.imgUrl,
    },

    onLoad: function (options) {
        console.log('options', options)
        if (options.id) {
            this.getMyOrganizationUserList(options.id)
        }


    },
    //拿到团的用户列表
    getMyOrganizationUserList(id) {
        http.request({
            url: api.gettuanUserList,
            data: {
                id: id,
            },
            success: (res) => {
                console.log('拿到团的用户列表', res);
                if (res.code == 200) {
                    this.setData({
                        memberList: res.data
                    })
                }

            }
        });
    },
    onShow: function () {

    },
})